package com.zjw.dao;

import com.zjw.entity.TradeLog;
import com.zjw.vo.TradeLogDetail;

import java.sql.SQLException;
import java.util.List;

/**
 * 交易记录表(Tradelog)表数据库访问层
 *
 * @author 翟
 * @since 2025-04-09 08:59:18
 */
public interface TradeLogDao {

    /**
     * 添加交易记录
     * @param tradeLog 交易记录实体类
     * @return
     * @throws SQLException
     */
    int insert(TradeLog tradeLog) throws SQLException;

    /**
     * 查询所有交易记录
     * @return List<TradeLogDetail>
     * @throws SQLException
     */
    List<TradeLogDetail> selectAll() throws SQLException;
}

